package day04;

/**
 获取一个随机数
 * @author Smartloe
 * @create 2021-04-03 14:24
 */
public class randNum {
    public static void main(String[] args) {
        double value = (int)(Math.random()*90+10);
        System.out.println(value);
     //公式：[a,b] : (int)(Math.random()*(b-a+1)+a);
    }
}
